#ifndef FILESTORETHREAD_H
#define FILESTORETHREAD_H

#include <QThread>
#include <QSemaphore>

class FileStoreThread : public QThread
{
    Q_OBJECT
public:
    explicit FileStoreThread(QSemaphore* semaphore, QString fileDir, QObject *parent = nullptr);

    void run();

    QByteArray generateData();

    bool writeData(QString fileName, QByteArray data);

    qint64 getFreeDisk(QString path);

signals:

private:
    QString m_storePath;
    quint64 m_count;
    QByteArray m_testData;
    QSemaphore* m_semaphore;
};


#endif // FILESTORETHREAD_H
